import React from "react";
import PropTypes from "prop-types";
import classNames from "classnames";

import "./msg.css";

export default class Msg extends React.Component {
  static propTypes = {
    className: PropTypes.string,
    children: PropTypes.node,
  };

  static defaultProps = {
    className: "",
    children: "this is msg",
  };

  handleClick = () => {
    console.log("handle click");
  };

  render() {
    const { className, ...rest } = this.props;

    return <div {...rest} className={classNames("msg", className)} />;
  }
}
